'''
This script create a force field table in a database.
Usage:
    createdb.py filename tablename type
For Example:
    createdb.py mydatabase.dffdb AMBER1 AMBER
    It create a database in dffdb. and add a new database table named AMBER1 in it. Its type is AMBER
Created on 2009-8-26

@author: madlee
'''

if __name__ == '__main__':
    from sys import argv
    if len(argv) != 4:
        print __doc__
    else:
        from kuai.dff.dffdb import Database
        Database.create(argv[1], argv[2], argv[3])
        print "The %s table %s was created in %s" % (argv[3], argv[2], argv[1])
